package com.zxl.manager.service.impl;

import com.zxl.manager.dao.OrderDao;
import com.zxl.manager.entity.Order;
import com.zxl.manager.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by jimmy on 2017/7/16.
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public List<Order> getAllOrder(Integer limit,Integer offset) {
        return orderDao.getAllOrder(limit,offset);
    }

    @Override
    public int updOrder(String ids) {
        return orderDao.updOrder(ids);
    }

    public int totalOrder(){
        return orderDao.totalOrder();
    }


}
